package com.jbit.hxy;


import com.jbit.hxy.properties.WxPayProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication //开启springboot
@EnableDiscoveryClient //开启服务发现
@EnableFeignClients //开启远程调用
@EnableConfigurationProperties({WxPayProperties.class}) //开启配置属性
@MapperScan(basePackages = "com.jbit.hxy.mapper") //扫描mapper
@EnableTransactionManagement //开启事务管理
public class PayServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(PayServiceApplication.class, args);
    }
}
